package com.example.webdemo.dao;

import com.example.webdemo.model.UserInfo;
import org.apache.ibatis.annotations.Param;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo selectByPhone(@Param("phone") String phone);

    int updateByPhone(@Param("token") String token,@Param("userPhone") String userPhone);

    UserInfo selectByToken(@Param("token") String token);
}